using System;
using System.ComponentModel;

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace tccacademia.Module.BusinessObjects
{
    [DefaultClassOptions]
    public class Academia : BaseObject
    {
        public Academia(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here or place it only when the IsLoading property is false:
            // if (!IsLoading){
            //    It is now OK to place your initialization code here.
            // }
            // or as an alternative, move your initialization code into the AfterConstruction method.
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        private String razao;
        public String Razao
        {
            get { return razao; }
            set { SetPropertyValue("Razao", ref razao, value); }
        }

        private String nome;
        public String Nome
        {
            get { return nome; }
            set { SetPropertyValue("Nome", ref nome, value); }
        }

        private String cnpj;
        public String Cnpj
        {
            get { return cnpj; }
            set { SetPropertyValue("Cnpj", ref cnpj, value); }
        }

        private String endereco;
        public String Endereco
        {
            get { return endereco; }
            set { SetPropertyValue("Endereco", ref endereco, value); }
        }

        private String numero;
        public String Numero
        {
            get { return numero; }
            set { SetPropertyValue("Numero", ref numero, value); }
        }

        private String municipio;
        public String Municipio
        {
            get { return municipio; }
            set { SetPropertyValue("Municipio", ref municipio, value); }
        }

        private String estado;
        public String Estado
        {
            get { return estado; }
            set { SetPropertyValue("Estado", ref estado, value); }
        }

        private String website;
        public String Website
        {
            get { return website; }
            set { SetPropertyValue("Website", ref website, value); }
        }

        private String email;
        public String Email
        {
            get { return email; }
            set { SetPropertyValue("Email", ref email, value); }
        }

        private String telefone1;
        public String Telefone1
        {
            get { return telefone1; }
            set { SetPropertyValue("Telefone1", ref telefone1, value); }
        }

        private String telefone2;
        public String Telefone2
        {
            get { return telefone2; }
            set { SetPropertyValue("Telefone2", ref telefone2, value); }
        }

        private String fax;
        public String Fax
        {
            get { return fax; }
            set { SetPropertyValue("Fax", ref fax, value); }
        }

        private String informacoes;
        public String Informacoes
        {
            get { return informacoes; }
            set { SetPropertyValue("Informacoes", ref informacoes, value); }
        }
    }

}
